const num='12' as string
var str=typeof 12
console.log(num,'num');
console.log(str,'str');
type ALLNUM=number;
type ALLBOOL=boolean;
type STR=typeof num
let newStr:STR='123'
// 枚举
enum Color{Red,Green,Blue}
let c:Color=Color.Green

// 索引
let arr:string[]|number|boolean[]=['1']
console.log(arr);


interface ArrType{
    [index:number]:string;
}
let arr2:ArrType=['123','234']
interface objType{
    [index:string]:string;
}
let obj:objType={
    type:'hange'
}
